<div class="row">
	<div class="col-lg-12">
		<ol class="breadcrumb">
			<li><a><i class="fa fa-home mrg-r-sm"></i>从业人员列表</a>
			</li>
			<li class="active"><span>合作申请记录</span>
			</li>
		</ol>
		<div class="clearfix">
			<div class="filter-block pull-left">
				<!--搜索框 Start1-->
				<div class="form-group pull-left">
					<input type="text" class="form-control" ng-model="search.userName" placeholder="请输入姓名">
				</div>
				<div class="form-group pull-left">
					<input type="text" class="form-control" ng-model="search.orderId" placeholder="请输入订单号" >
				</div>
				<div class="form-group pull-left">
					<input type="text" class="form-control" ng-model="search.to_company_name"  placeholder="请输入归属企业">
				</div>
				<div class="form-group pull-left">
					<select class="form-control" ng-model="search.serviceType1"  ng-click="getserviceType2(search.serviceType1.code)" ng-options=" service1 as service1.title for service1 in serviceList"  >
						<option value="">请选择服务项目</option>
					</select>
				</div>
				<div class="form-group pull-left">
					<select class="form-control"  ng-model="search.serviceType2" ng-click="getserviceType3(search.serviceType2.code)" ng-options=" service2 as service2.title for service2 in serviceList2" >
						<option value="">请选择服务项目</option>
					</select>
				</div>
				<div class="form-group pull-left">
					<select class="form-control"  ng-model="search.serviceType3"  ng-options=" service3 as service3.title for service3 in serviceList3" >
						<option value="">请选择服务项目</option>
					</select>
				</div>				
				<div class="form-group pull-left">
					<select  class="form-control" ng-model="search.servantstatus">
						<option value="">请选择审核状态</option>
						<option value="1">对方同意合作</option>
						<option value="2">对方拒绝合作</option>
						<option value="0">待对方审核</option>
					</select>
				</div>
				<!--搜索框 End1-->
				<a class="btn btn-success pull-left form-group" ng-click="search(search)"  >
				 搜索
				 </a>
			</div>
		</div>
	</div>
</div>
<div class="row">
	<div class="col-lg-12">
		<div class="main-box no-header clearfix">
			<div class="main-box-body clearfix">
				<div class="table-responsive">
					<table class="table user-list table-hover">
						<thead>
							<tr>
								<th ><span>人员</span></th>
								<th class="text-center"><span>服务项目</span></th>
								<th class="text-center"><span>匹配订单号</span></th>
								<th class="text-center"><span>归属企业</span></th>
								<th class="text-center"><span>审核状态</span></th>
								<th class="text-center">操作</th>
							</tr>
						</thead>
						<tbody>
							 <tr ng-repeat="item in list">
					            <td >
					            	<img src="{{URL+item.photo}}" alt=""  class="user_logo" ng-show="item.photo!=''&&item.photo!=null" />
					            	<img src="../../public/img/noimg.jpeg" class="user_logo" alt=""  ng-if="item.photo==''||item.photo==null" />
									<a class="user-link">{{item.to_company_servant_name}}</a>
									<span class="user-subhead">{{item.sex}}</span>
					            </td>
					            
					            <td class="text-center">{{item.serviceType3_title}}</td>
					            <td class="text-center">{{item.order_id}}</td>
					            <td class="text-center">{{item.to_company_name}}<!--<span ng-repeat="job in item.jobs">1</span> --></td>
					            <td class="text-center">
					            	<span ng-if="item.status=='0'" class="label label-warning">待对方审核</span>
					            	<span ng-if="item.status=='1'" class="label label-success">对方同意合作</span>
					            	<span ng-if="item.status=='2'" class="label label-danger">对方拒绝合作</span>
					            </td>
					          
					            <td class="text-center">
                                    <a href="#/servant/applyListDetails/{{item.to_company_servant_id}}" class="table-link">
                                        <span class="fa-stack">
                                            <i class="fa fa-square fa-stack-2x"></i>
                                            <i class="fa fa-info fa-stack-1x fa-inverse"></i>
                                        </span>
                                    </a>
					            </td>
        					</tr>
						</tbody>
					</table>
				</div>
				<ul class="pagination pull-right">
					<li><a >总条数：{{count}}</a></li>
					<li><a >总页数：{{totalPage}}</a></li>
			        <li><a ng-click="changePage(1)">首页</a></li>
			        <li><a ng-show="currentPage>1" ng-click="changePage(currentPage-1)"><i class="fa fa-chevron-left"></i></a></li>
			        <li ng-repeat="item in pageList" ng-click="changePage(item.number)" class="{{item.active}}"><a>{{item.number}}</a></li>
			        <li><a ng-show="currentPage<totalPage" ng-click="changePage(currentPage+1)"><i class="fa fa-chevron-right"></i></a></li>
			        <li><a ng-click="changePage(totalPage)">尾页</a></li>
				</ul>
			</div>
		</div>
	</div>
</div>